#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_GlassesParamRecognition.h"
#include "QOpenglView.h"
#include "DataAnalysis.h"
#include "GenHead.h"

class GlassesParamRecognition : public QMainWindow
{
	Q_OBJECT

public:
	GlassesParamRecognition(QWidget *parent = Q_NULLPTR);
protected slots:
	void on_cmdStart_clicked();
	void on_cmdStop_clicked();
	void DataArrived();
protected:
	int MatToArray(const cv::Mat& matImg, vector<unsigned char>&vData, int& iWidth, int &iHeight);

private:
	Ui::GlassesParamRecognitionClass ui;
	QOpenglFromOpengl* m_pView;
	DataAnalysis m_analy;
};
